package com.apicloud.moduleDemo;

import java.util.Map;

import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by Steven on 2016/8/30 0030.
 */
public interface APIInterface {
    @FormUrlEncoded
    @POST("{system}/sdk/token")
    Call<ResponseBody> getToken(@Path("system") String name, @Field("p1_usercode") String usercode,
                                @Field("p2_order") String order, @Field("p3_money") String money,
                                @Field("p4_returnurl") String returnUrl, @Field("p5_notifyurl") String notifyUrl,
                                @Field("p6_ordertime") String orderTime, @Field("p9_paymethod") String method,
                                @Field("p7_sign") String sign);
    // add QueryMap to get data
    @POST("{system}/sdk/token")
    Call<ResponseBody> getToken(@Path("system") String name, @QueryMap Map<String, String> map);

}
